package com.ctgu.controller;


import com.ctgu.common.ResponseResult;
import com.ctgu.service.IFilesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yiMa
 * @since 2023-07-05
 */
@RestController
@RequestMapping("/files")
public class FilesController {

    @Autowired
    private IFilesService filesService;

    @GetMapping("/one")
    public ResponseResult getOne(Integer id){
        return filesService.getOneFiles(id);
    }


}

